<template>
    <el-container>
        <el-header>
            <navTop></navTop>
        </el-header>
        <el-container>
            <el-aside width="200px">
                <navLeft></navLeft>
            </el-aside>
            <el-main>
                <router-view></router-view>
            </el-main>
        </el-container>
    </el-container>
</template>

<script>
import navLeft from "../components/nav/nav-left";
import navTop from "../components/nav/nav-top";
export default {
    components: {
        navLeft,
        navTop
    }
};
</script>

<style scoped>
* {
    margin: 0;
    padding: 0;
}
.el-header,
.el-footer {
    background-color: rgb(84, 92, 100);
    border-bottom: 0.5px solid #999;
    color: rgb(255, 255, 255);
    text-align: center;
    /* line-height: 60px; */
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 999;
}

.el-aside {
    /* background-color:rgb(84, 92, 100); */
    position: fixed;
    top: 60px;
    left: 0;
    color: #333;
    text-align: center;
}

.el-main {
    background-color: #e9eef3;
    color: #333;
    text-align: center;
    margin-left: 200px;
    margin-top: 60px;
    /* height:100%; */
}
body {
    height: 100vh;
}
body > .el-container {
    height: 100%;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
    line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
    line-height: 320px;
}
</style>